package org.medicalinstrument.dao;

import org.medicalinstrument.bean.PurchaseOrderDetail;
import org.medicalinstrument.bean.PurchaseOrderMaster;
import org.medicalinstrument.bean.ShoppingCart;
import org.medicalinstrument.bean.ShoppingCart_VO;

import java.sql.SQLException;
import java.util.List;

public interface ShoppingCartDao {
    //添加商品到购物车
    Boolean add(ShoppingCart cart) throws SQLException;
    //将商品从购物车中移除
    Boolean delete(List qrList) throws SQLException;
    //查询购物车中的商品详情
    List<ShoppingCart_VO> getAll(String accountNo) throws SQLException;
    String buy(List<PurchaseOrderMaster> pm, List<PurchaseOrderDetail> pd) throws SQLException;
    public ShoppingCart_VO isExist (String productQR) throws SQLException;
    public Boolean update(ShoppingCart cart) throws SQLException;
}
